package com.example.zhunongzonghe.beans;

import com.example.zhunongzonghe.model.ShopModel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;


@Data
@NoArgsConstructor
@ApiModel(value="ZnShoppingcart对象", description="")
public class ZnShoppingcartBean implements Serializable {
    private static final long serialVersionUID=1L;
    /**
     * 购物车表
     */
    private Integer shoppingId;
    /**
     * 商品
     */
    private Integer farmId;
    /**
     * 规格
     */
    private Integer specId;
    /**
     * 数量
     */
    private Integer count;
    /**
     * 加购用户
     */
    private String username;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;

    /**
     * 产品名
     */
    private String farmName;
    /**
     * 产品简介
     */
    private String farmIntro;

    /**
     * 产品图片
     */
    private String shopPicture;
    /**
     * 收货地址表
     */
    private Integer addressId;
    /**
     * 总价
     */
    private BigDecimal totalPrice;
    /**
     * 单价
     */
    private BigDecimal price;

    private ZnFarmSpecificationBean specificationBean;

    List<ShopModel> shoppingcartList;
}
